package com.realone.packman.codec.encoder;

import com.realone.packman.codec.encoder.vo.BmsEncoderDataVo09;

import java.nio.ByteBuffer;

/**
 * 参数配置管理 编码
 *
 * @author hugx
 * @create 2018-09-14 15:57
 */
public class BmsEncoder09 extends BmsEncoder<BmsEncoderDataVo09> {

    @Override
    protected byte[] encoderData(BmsEncoderDataVo09 bmsEncoderDataVo09) {
        ByteBuffer bb = ByteBuffer.allocate(1);
        bb.put(bmsEncoderDataVo09.getParameter());

        return bb.array();
    }
}
